package com.xj.service.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;

@TableName(value = "`order`")
public class Order {
    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    @TableField(value = "orderno")
    private Long orderno;

    @TableField(value = "userid")
    private Integer userid;

    @TableField(value = "productid")
    private Integer productid;

    @TableField(value = "num")
    private Integer num;

    @TableField(value = "totalprice")
    private BigDecimal totalprice;

    @TableField(exist = false)
    private String pname;

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return orderno
     */
    public Long getOrderno() {
        return orderno;
    }

    /**
     * @param orderno
     */
    public void setOrderno(Long orderno) {
        this.orderno = orderno;
    }

    /**
     * @return userid
     */
    public Integer getUserid() {
        return userid;
    }

    /**
     * @param userid
     */
    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    /**
     * @return productid
     */
    public Integer getProductid() {
        return productid;
    }

    /**
     * @param productid
     */
    public void setProductid(Integer productid) {
        this.productid = productid;
    }

    /**
     * @return num
     */
    public Integer getNum() {
        return num;
    }

    /**
     * @param num
     */
    public void setNum(Integer num) {
        this.num = num;
    }

    /**
     * @return totalprice
     */
    public BigDecimal getTotalprice() {
        return totalprice;
    }

    /**
     * @param totalprice
     */
    public void setTotalprice(BigDecimal totalprice) {
        this.totalprice = totalprice;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }
}